package com.slliver.orderservice.feign;


import com.slliver.commonmodel.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value="product-service")
public interface ProductFeignService {

    @GetMapping("/api/product/{productId}")
    Product getProduct(@PathVariable("productId") Long productId);

}
